function getCurrentAuthority() {
  return ['users']
}

export function check(permissions) {
  const current = getCurrentAuthority()
  return current.some(item => permissions.includes(item))
}

export function isLogin() {
  const current = getCurrentAuthority()
  return current && current[0] !== 'guest'
}